package monsmon.run.cmd;

import monsmon.control.*;
import monsmon.game.*;

public class MoveCommand implements Command{

	private Entity e;
	private Direction d;

	public MoveCommand(Entity e, Direction d){
		this.e = e;
		this.d = d;
	}

	public void exec(){
		if(EControl.ent_can_move(e, d)){
			EControl.ent_move(e, d);
		}
	}
}
